﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess_Layer;
using DTO;
namespace Business_Layer
{
    public class TinTucNCC_BUS
    {
        TinTucNCC_DAC DAC = new TinTucNCC_DAC();
        //
        public int Insert(TinTucNCC x)
        {
            try
            {
                DAC.Insert(x);
                return 1;
            }
            catch
            {
                return 0;
            }
        }
        //
        public TinTucNCC get(int id)
        {
            try
            {
                return DAC.get(id);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}
